export default {
  testEnvironment: 'jsdom',
  setupFiles: ['<rootDir>/jest.setup.js'],
  collectCoverage: true,
  coverageDirectory: 'temp/coverage-jest',
  coverageReporters: ['json', 'lcov', 'text', 'clover'],
  reporters: [
    'default',
    ['jest-junit', {
      outputDirectory: 'temp/test-results',
      outputName: 'results.xml'
    }]
  ],
  transform: {
    '^.+\\.js$': 'babel-jest'
  },
  moduleFileExtensions: ['js', 'json', 'node'],
  testMatch: [
    '**/server/tests/**/*.test.js',
    '**/web/tests/**/*.test.js'
  ],
  collectCoverageFrom: [
    'server/src/**/*.js',
    'web/src/**/*.js'
  ],
  coveragePathIgnorePatterns: [
    '/node_modules/',
    '/server/src/utils/logger.js',
    '/web/src/utils/logger.js',
  ],
  moduleNameMapper: {
    '\\.(less|css)$': 'identity-obj-proxy'
  }
}